<div class="diy-phone">
	<div class="phone-head"></div>
	<div class="phone-body">
		<div class="phone-title" >自定义表单</div>
		<div class="phone-main">
			<div ng-repeat="item in {tovalue}.{name}" style="margin:10px">
					<div class="weui_cells weui_cells_form" ng-if="item.type == 1">
					<div class="weui_cell">
						<div class="weui_cell_hd"><label class="weui_label">{{item.title}}</label></div>
						<div class="weui_cell_bd weui_cell_primary">
							<input class="weui_input" type="text" ng-model="item.data" placeholder="输入{{item.title}}内容">
						</div>
					</div>
					</div>
					<div class="weui_cells weui_cells_form" ng-if="item.type == 2">
					 <div class="weui_cell" ng-if="item.type == 2">
						<div class="weui_cell_hd"><label class="weui_label">{{item.title}}</label></div>
						<div class="weui_cell_bd weui_cell_primary">
							<input class="weui_input" type="number" ng-model="item.data" placeholder="输入{{item.title}}内容">
						</div>
					</div>
					</div>
					<div class="weui_cells weui_cells_form" ng-if="item.type == 18">
					 <div class="weui_cell" ng-if="item.type == 18">
						<div class="weui_cell_hd"><label class="weui_label">{{item.title}}</label></div>
						<div class="weui_cell_bd weui_cell_primary">
							<input class="weui_input" type="number" ng-model="item.data" value="{{item.data || '0.00'}}" placeholder="输入{{item.title}}内容">
						</div>
					</div>
					</div>
					<div class="weui_cells weui_cells_form" ng-if="item.type == 3">
					<div class="weui_cell" ng-if="item.type == 3">
							<div class="weui_cell_hd"><label class="weui_label">{{item.title}}</label></div>
							<div class="weui_cell_bd weui_cell_primary">
								<ul class="weui_uploader_files" ng-if="item.data">
									  <li class="weui_uploader_file" style="background-image:url({{tomedia(item.data)}})"></li>
								</ul>
								<div class="weui_uploader_input_wrp">
									 <input class="weui_uploader_input" ng-model="item.data" ng-click="up_file(item,'data','image')" accept="image/jpg,image/jpeg,image/png,image/gif" multiple="">
								</div>
							</div>
					</div>
					</div>
						<div ng-if="item.type == 4" class="weui_cells_title">{{item.title}}</div>
						<div ng-if="item.type == 4" class="weui_cells weui_cells_radio2">
								<label class="weui_cell weui_check_label dashed" ng-repeat="(key,value) in item.value">
									<div class="weui_cell_bd weui_cell_primary">
										<span style="float:left;width:100%">{{value.title}}</span>
									</div>
									<div class="weui_cell_ft" href="javascript:;"  ng-click="item.data=value.title;">
										<input type="radio" class="weui_check" name="radio1">
										<span class="weui_icon_checked"></span>
									</div>
								</label>
						</div>	
						<div ng-if="item.type == 5" class="weui_cells_title">{{item.title}}</div>
						<div ng-if="item.type == 5" class="weui_cells weui_cells_checkbox" style="padding:0.5rem">
								<div class="fui-cell-label" style="margin-right:0.8rem;float:left;margin-bottom:0.2rem" ng-repeat="(key,value) in item.value">
									<input type="checkbox" ng-click="duoxuans(value.title,item,'data')" class="fui fui-checkbox fui-checkbox-danger verify-checkbox" value="{{value.title}}" id="s11"> {{value.title}}
								</div>
						</div>
						<div ng-if="item.type == 6" class="weui_cells_title">{{item.title}}</div>
						<div ng-if="item.type == 6" class="weui_cells weui_cells_form">
						<div class="weui_cell">
								<div class="weui_cell_bd weui_cell_primary">
									<textarea class="weui_textarea" ng-model="item.data" placeholder="请输入{{item.title}}" rows="2"></textarea>
									<div class="weui_textarea_counter"><span>0</span>/118</div>
								</div>
							</div>
						</div>
						<div ng-if="item.type == 7" class="weui_cells_title">{{item.title}}</div>
						<div ng-if="item.type == 7" class="weui_cells weui_cells_form">
							<div class="weui_cell">
								<div class="fui-cell-label" style="width:33%">
									<select ng-model="item.data.province" class="form-control tpl-province">
									<option value="" selected="selected">省份</option>
									<option ng-repeat="(value,data) in pagedata.extradata.province.province" value="{{value}}" ng-selected="item.data.province==value">{{value}}</option>
									</select>
								</div>
								<div class="fui-cell-label" style="width:33%">
									<select ng-model="item.data.city" class="form-control tpl-city">
									<option value="" selected="selected">城市</option>
									<option ng-repeat="(value,data) in pagedata.extradata.province.province[item.data.province]" value="{{value}}" ng-selected="item.data.city==value">{{value}}</option>
									</select>
								</div>
								<div class="fui-cell-label" style="width:33%">
									<select ng-model="item.data.district" class="form-control tpl-district">
									<option value="" selected="selected">区县</option>
									<option ng-repeat="value in pagedata.extradata.province.province[item.data.province][item.data.city]" value="{{value}}" ng-selected="item.data.district==value">{{value}}</option>
									</select>
								</div>
							</div>
						</div>
						<div class="weui_cells weui_cells_form" ng-if="item.type == 8">
						 <div class="weui_cell" ng-if="item.type == 2">
							<div class="weui_cell_hd"><label class="weui_label">{{item.title}}</label></div>
							<div class="weui_cell_bd weui_cell_primary">
								<input class="weui_input" type="number" ng-model="item.data" placeholder="输入{{item.title}}内容">
							</div>
						</div>
						</div>
						<div class="weui_cells weui_cells_form" ng-if="item.type == 9">
						<div class="weui_cell">
							<div class="weui_cell_hd"><label class="weui_label">{{item.title}}</label></div>
							<div class="weui_cell_bd weui_cell_primary">
								<input class="weui_input" type="text" ng-model="item.data" placeholder="输入{{item.title}}内容">
							</div>
						</div>
						</div>
					</div>
				<div class="weui_btn_area">
							<a class="weui_btn weui_btn_primary">立即提交</a>
				</div>
		</div>
	</div>
	<div class="phone-foot"></div>
</div>